<?php
	class laisuatguibs
	{
		public $MaLaiSuatGui = 0;
		public $MaLoaiKyHan = 0;
		public $PhanTramLaiSuatGui = 0;
		public $HangThang = 0;
		public $HangNam = 0;
		public $NgayCapNhat = "";
		
		public function Them()
		{
			$db = new laisuatguidb();
			return $db->Them($this->MaLoaiKyHan,
							 $this->PhanTramLaiSuatGui,
							 $this->HangThang,
							 $this->HangNam,
							 $this->NgayCapNhat);
		}
		
		public function CapNhat()
		{
			$db = new laisuatguidb();
			return $db->CapNhat($this->MaLaiSuatGui,
								$this->MaLoaiKyHan,
							    $this->PhanTramLaiSuatGui,
								$this->HangThang,
							 	$this->HangNam);
		}
		
		public function TonTaiTrongSoTietKiem()
		{
			$db = new laisuatguidb();
			return $db->TonTaiTrongSoTietKiem($this->MaLaiSuatGui);
		}
		
		public function Xoa()
		{
			$db = new laisuatguidb();
			return $db->Xoa($this->MaLaiSuatGui);
		}
		
		public function XoaTatCa()
		{
			$db = new laisuatguidb();
			return $db->XoaTatCa();
		}
		
		public function LayDanhSach()
		{
			$db = new laisuatguidb();
			return $db->LayDanhSach($this->MaLaiSuatGui,
									$this->MaLoaiKyHan,
									$this->PhanTramLaiSuatGui,
									$this->HangThang,
									$this->HangNam,
									$this->NgayCapNhat);
		}
		
		public function CapNhatHangThang()
		{
			$db = new laisuatguidb();
			return $db->CapNhatHangThang($this->MaLaiSuatGui, $this->HangThang,$this->NgayCapNhat);
		}
		
		public function CapNhatHangNam()
		{
			$db = new laisuatguidb();
			return $db->CapNhatHangNam($this->MaLaiSuatGui, $this->HangNam, $this->NgayCapNhat);
		}
	}
?>